import { createStore, combineReducers ,applyMiddleware} from "redux";
import thunk from 'redux-thunk';
import { calculate } from "../reducer/index.js";
// 全局你可以创建多个reducer 在这里统一在一起
const rootReducers = combineReducers({calculate})
// 全局就管理一个store
const store = createStore(rootReducers,applyMiddleware(thunk))
export default store;